package com.xiruoyu.domain;

import sun.print.PSPrinterJob;

/**
 * @author xiruoyu
 * @date 2021/7/26 20:00
 */
public class User {
    private String username;

    private Integer age;

    private String password;

    public User() {}

    public User(String username, Integer age, String password) {
        this.username = username;
        this.age = age;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", age=" + age +
                ", password='" + password + '\'' +
                '}';
    }

    public static void main(String[] args) {
        User user = new User("水金", 18, "123456");
	    System.out.println(user);
    }
}
